#!/usr/bin/python
import roslib; roslib.load_manifest('DelphinROSv2')
import rospy
from DelphinROSv2.msg import compass

def talker():
	pub=rospy.Publisher('compass_out',compass)
	rospy.init_node('compass_dummy')
        counter = 1

	while not rospy.is_shutdown():
		heading=120
		pitch=120
		roll=1.0
		temperature=15		
		depth=counter
		m=10
		mx=5
		my=6
		mz=7
		a=0
		ax=2
		ay=5
		az=5
                counter = counter +1
		 
		pub.publish(heading=heading,pitch=pitch,roll=roll,temperature=temperature,depth=depth,m=m,mx=mx,my=my,mz=mz,a=a,ax=ax,ay=ay,az=az)
		rospy.sleep(3.0)
  
if __name__ == '__main__':
	try:
		talker()
	except rospy.ROSInterruptException: pass




    

    
    
